<html><head><title>PlaySound</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">PlaySound()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>PlaySound</b></font>(#Sound [, Flags [, Volume]])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Start to play the specified sound. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Sound</i></td>
<td width="90%"> 
The sound to play. 

</td></tr>
<tr><td><i>Flags (optional)</i></td>
<td> 
It can be a combination of the following values: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Sound_Loop</font>        : play the sound continuously (starts again when end is reached)
  <font color="#924B72">#PB_Sound_MultiChannel</font>: play the sound in a new channel instead of stopping the
        previously played sound. This allows to use the same sound and to play it on different
        channels at once. 'Result' will be new allocated channel, and can be used by the
        other sound commands like <a href="soundvolume.html">SoundVolume()</a>, <a href="soundpan.html">SoundPan()</a> etc.
</font></pre>

</td></tr>
<tr><td><i>Volume (optional)</i></td>
<td> 
Sets the initial volume of the #Sound. The valid values are from 0 (no volume) to 100 (full volume). 
The default value is 100. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

The channel number, if the <font color="#924B72">#PB_Sound_MultiChannel</font> flag is used. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="stopsound.html">StopSound()</a>, <a href="freesound.html">FreeSound()</a>, <a href="pausesound.html">PauseSound()</a>, <a href="resumesound.html">ResumeSound()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=pausesound.html>PauseSound()</a> - <a href=index.html>Sound Index</a> - <a href=resumesound.html>ResumeSound()</a> ->

</body></html>